{include file="public/header" /}
{load href="__PLUGINS__iCheck/icheck.min.js"}
{load href="__PLUGINS__iCheck/custom.css"}

<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <form class="form-horizontal" method="post">
            <div class="col-sm-12">
                <div class="tabs-container">

                    <div class="tab-content">
                        <div id="tab-1" class="tab-pane active">
                            <div class="ibox-content">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">榜单：</label>
                                <div class="col-sm-9">
                                    <select class="form-control" name="type_id">
                                        {php}
                                        if(isset($name)){
                                        $typeidname=$name['type_id'];
                                        }else{
                                        $typeidname='';
                                        }
                                        {/php}

                                        {volist name='category' id='v'}
                                        <option value="{$v.id}" {eq name="v.id" value="$typeidname" }selected{/eq}>{$v.title}</option>
                                        {/volist}
                                    </select>
                                </div>
                            </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">动态id：</label>
                                    <div class="col-sm-9">
                                        <input name="dy_id" type="text" class="form-control" value="{present name='name'}{$name.dy_id}{/present}">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">标题：</label>
                                    <div class="col-sm-9">
                                        <input name="title" type="text" class="form-control" value="{present name='name'}{$name.title}{/present}">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">排序：</label>
                                    <div class="col-sm-9">
                                        <input name="sort" type="text" class="form-control" value="{present name='name'}{$name.sort}{else /}0{/present}">
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
{include file="public/footer" /}

<script type="text/javascript">
    $(document).ready(function(){
        $(".i-checks").iCheck({
            checkboxClass: "icheckbox_square-green",
            radioClass: "iradio_square-green",
        })

    });
</script>
{include file="public/bottom" /}